<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<span>数据总长度:{{ dept|length }}</span>
<br>
<table>
    <tr>
        <td>id</td>
        <td>name</td>
        <td>adders</td>
        <td>create time</td>
        
    </tr>
    {% for dep in dept %}
        <tr>
            <td>{{ forloop.counter }}</td>
            <td>{{ dep.name }}</td>
            <td>{{ dep.adders|default:"没有数据" }}</td>
            <td>{{ dep.create_tiem|date:"Y-m-d H:i:s" }}</td>
        </tr>
    {% endfor %}


</table>
</body>
</html>